using WatiN.Core;

namespace Headspring.Training.FullSystemTests
{
	public class SmartIE : IE
	{
		private readonly string _urlLeftPart;

		public SmartIE(string urlLeftPart)
		{
			_urlLeftPart = urlLeftPart;
		}

		public virtual void NavigateTo(string absoluteUrl)
		{
			string url = _urlLeftPart + absoluteUrl;
			GoTo(url);
		}
	}
}